import { UPDATEPAGEJOBDETAIL } from '../types/pagejobdetail'
import { handleActions } from 'redux-actions'

const Schema = {
  modalVisible: false,
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  jobtopdetail: {},
  jobbottomdetail: {},
  bossdetail: {
    pic: 'https://imagesize.hrwork.com/sp/files/f50ddc08-4eb8-4326-89f0-85a6d1b1807b.png',
    name: '王琪琪',
    title: 'CEO',
    realnameallready: false,
    publishtime: '今天09:25发布'
  }
}

export default handleActions(
  {
    [UPDATEPAGEJOBDETAIL] (state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
